import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ConfigDictComponent } from './config-dict/config-dict.component';
import { ConfigAddressComponent } from './config-address/config-address.component';
import { ConfigDictListComponent } from './config-dict-list/config-dict-list.component';
import { ConfigBrandComponent } from './config-brand/config-brand.component';
import { ConfigShortAddressComponent } from './config-short-address/config-short-address.component'
import { ConfigMappingListComponent } from './config-mapping-list/config-mapping-list.component';
import { ConfigDefaultWordsComponent } from './config-default-words/config-default-words.component';
import { ConfigGoodsStoreComponent } from './config-goods-store/config-goods-store.component';

const routes: Routes = [
  // 默认访问
  { path: '', redirectTo: 'configDict', pathMatch: 'full' },

  { path: 'configDict', component: ConfigDictComponent, data: { breadcrumb: '字典管理' } },
  { path: 'DictList', component: ConfigDictListComponent, data: { breadcrumb: '字典管理列表' } },
  { path: 'configAddress', component: ConfigAddressComponent, data: { breadcrumb: '地址管理' } },
  { path: 'ConfigBrand', component: ConfigBrandComponent, data: { breadcrumb: '品牌管理' } },
  { path: 'configShortAddress', component: ConfigShortAddressComponent, data: { breadcrumb: '短地址管理' } },
  { path: 'configMappingList', component: ConfigMappingListComponent, data: { breadcrumb: '链接映射管理' } },
  { path: 'configDefaultWords', component: ConfigDefaultWordsComponent, data: { breadcrumb: '搜索框默认词' } },
  { path: 'config-goods-store', component: ConfigGoodsStoreComponent, data: { breadcrumb: '商品公共库' } }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ConfigRoutingModule { }
